Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / ReplaceAsync Method / ReplaceAsync<T>(IDataCollection<T>,Int32,T) Method
The data collection.
The index.
The item.

In This Topic
    ReplaceAsync<T>(IDataCollection<T>,Int32,T) Method
    In This Topic
    Replaces the item at the specified index by the specified item.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ReplaceAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal index As Integer, _
       ByVal item As T _
    ) As Task(Of Integer)
    public static Task<int> ReplaceAsync<T>( 
       IDataCollection<T> dataCollection,
       int index,
       T item
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    index
    The index.
    item
    The item.

    Type Parameters

    T
    See Also